package wolf.iu.framework;

import org.objectweb.asm.tree.FieldInsnNode;
import org.objectweb.asm.tree.FieldNode;

import com.sun.xml.internal.ws.org.objectweb.asm.Opcodes;

public class FieldHook {
	FieldInsnNode node;
	public FieldHook(final FieldInsnNode fin) {
		this.node = fin;
	}
    public String getOldName() {
        return this.node.name;
    }
    public String getDesc() {
        return this.node.desc;
    }
    public String getOwner() {
        return this.node.owner;
    }
    public boolean isStatic() {
        return (this.node.getOpcode() == Opcodes.GETSTATIC) ||
        (this.node.getOpcode() == Opcodes.PUTSTATIC);
    }
}
